/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Bruno
 */
public class Hex {
	static Board board;
	static int whitePlayer;
	static int blackPlayer;
	static int currentPlayer;
	static HexGraphical hexGraphical = null;

	public static void main(String args[]) {
		if(args.length == 1 && args[0].equals("-c")) {
			// Versão de consola
			HexConsole hex = new HexConsole();
			hex.run();
		}
		else {
			// Versão gráfica
			hexGraphical = new HexGraphical();
			hexGraphical.run();
		}
	}

	public static void changeTurn() {
		currentPlayer = otherPlayer(currentPlayer);
	}

	public static int otherPlayer(int player) {
		if(player == Color.WHITE)
			return Color.BLACK;
		else
			return Color.WHITE;
	}
}
